import request from '@/utils/request'

const api_name = 'hot'

export default {
  getHotList(url, opt) {
    return request({
      url: `${api_name}/${url}`,
      method: 'get',
      opt
    })
  },
  url2Base64(url) {
    return request({
      url: `${api_name}/url2Base64`,
      method: 'get',
      params: {
        url: url
      }
    })
  }

}
